﻿using UnityEngine;
using System.Collections;

public class ModAI : IModBase
{
    private IAIBase runAI = null;

    public ModAI(OwnerObj ownerObj) : base(ownerObj)
    {
        
    }

    public void SwitchOnAI(IAIBase ai)
    {
        runAI = ai;
    }

    public override void Update(float deltaTime)
    {
        base.Update(deltaTime);

        if (null != runAI)
        {
            runAI.Update(deltaTime);
        }
    }
}
